Part Number Hot Search : 
2SC5587 PT7C4372 FDD6030L MC2856 DTQS3 95522 PCD5003A SHD11
Product Description
Full Text Search
 

To Download AN414 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  february 2013 doc id 1876 rev 2 1/14 AN414 application note controlling a brushed dc motor with an st6265c or st6260c mcu introduction variable speed drives have become widespread in the home appliance field. the most classical way to achieve it is to use an ac universal motor with triac and a specific circuit which controls the triac firing angle. we chose rather to use a permanent magnet dc motor driven by a chopper. the chopper is driven by a high frequency pwm signal. controlling the pwm duty cycle is eq uivalent to contro lling the motor voltag e, which in turn adjusts directly the motor speed. why did we make such a choice? the main reason is the need of a speed sensor and a closed loop regulation for the universal motor. for the permanent magnet dc motor, the speed is almost proportional to the motor supply voltage. therefore it is sufficient to control the motor voltage (through duty cycle adjustment) if a 10% speed accura cy is sufficient. this saves the expensive speed sensor. the dc motor with chopper has higher efficiency, as there are no 50 hz copper and iron losses, due to lower current ripple. the dc operation allows to reduce the acoustic noise, especially at 100 hz. figure 1. block diagram ta bl e 1 lists the microcontroller products concerned by this application note. . table 1. applicable products type part number microcontroller st6265c, st6260c st6265c igbt dc motor m ms19688v1 www.st.com
AN414 2/14 doc id 1876 rev 2 figure 2. ac universal motor versus permanent magnet dc motor the dc motor has a lower current ripple and therefore higher efficiency. t imotor imotor m m n l t ? ? ms19689v1
AN414 principle doc id 1876 rev 2 3/14 1 principle the drive is supplied from the rectified mains voltage, and consists of a chopper driven by a pwm signal generated by the st6265c microcontroller. the motor voltage control is achieved by measuring the rectified mains voltage with the analog- to-digital converter present on the st6265c mcu and adjusting the pwm signal duty cycle accordingly: the voltage seen by the motor is the product of the supply voltage by the pwm duty cycle. so the motor speed can be stable even if the mains voltage ripple is high, as the mcu corrects the duty cycle according to this ripple. this avoids the use of a speed measurement device and a speed regulation loop. if this voltage measurement / duty adjustment process is carried out often enough, it also results in reducing motor current ripple, and therefore copper and motor iron losses, thus improving motor efficiency. the ripp le period being 10 milliseconds (for 50 hz mains), the later process must occur at least every millisecond to get a large ripple reduction. in our example, the voltage compensation loop lasts 380 micro-seconds. this drive also implements a power limitation: the motor current is measured by the analog-to-digital converter of the st6265c mcu, and is used, together with the dc mains voltage, to compute the electrical power taken up by the motor. if it exceeds the maximum programmed power, the pwm signal duty cycle is reduced in real time by the st6265c to stay below this maximum. this limitation requires only a few discrete components used to measure the current (2 resistors, a diode and a capacitor make up a peak current detector), it is otherwise fully software. our application features a 300 watts maximum power, but this value can be easily adjusted by modifying a data table in the program, therefore allowing a very short design modification time if the drive must be used with various motors. 2 why use a microcontroller? the classical implementation of such a high frequency chopper usually involves an application-specific circuit, and some analog ci rcuitry to implement the additional features such as voltage compensation, power limitation or other. at first look, a microcontroller should reduce the overall cost of the electronics, as a single chip would ideally replace several chips. the real world is not so simple: the st6265c outputs the pwm signal with a 5 volts level, so a buffer is needed to drive the igbt with 15 volts, which takes 2 or 3 signal transistors. the mcu must be supplied with a voltage between 3 and 6 volts, and the 15 volts must be generated, so we need a small auxiliary supply to extract 5 and 15 volts from the mains. in addition, the mcu cannot generally replace the fast transistor protection needed for the igbt, as its response time is in the range of 10 micro-seconds, while less than 1 micro-second is required. in conclusion, the mcu approach comes out at the same price, or slightly more expensive than the analog one, at least if we only account for components costs. we must, however, consider the overall system cost, not only the components cost of one function. three factors at least should be considered: 1. in many cases, the appliance driven by the motor includes some kind of user interface: buttons, potentiometers, led displays, even lcd displays. if the analog approach is used, more circuitry will be n eeded to interface them with the motor drive. with the
why use a microcontroller? AN414 4/14 doc id 1876 rev 2 st6265c mcu approach, the mcu itself can sense the buttons, potentiometers, drive leds... in some existing appliances, the analog approach is used in conjunction with a microcontroller, the latter being dedicated to the user interface. this is obviously a waste, as one st62 mcu could take care of both tasks. if we consider the case of lcd displays, which are becoming more and more popular, a dedicated lcd driver circuit is generally used to interface them to a micro. we have implemented a software lcd drive function in the st6265c mcu, using its free output pins; the st6265c mcu can at the same time run the motor, drive the lcd and sense the user speed demand (in our case, two buttons "faster" and "slower"). (cf. ref. [4] page 12). 2. time-to-market and design time must be considered: the st6265c mcu software contains all the characteristics of the applicat ion; it is much fast er, if the application must be modified, to modify software than hardware especially when otp parts are used for volume production. we have implemented a software motor power limitation: the motor characteristics are known by the software in the form of a look up table. if the application must accommodate a different motor type, it is very quick to modify the data table in the software. most modifications of the application can be achieved by simple software modifications. if the st6265c mcu replaces an asic, the time and money saved when it is necessary to modify the initial design goes without saying. the st62 mcu can also be used to customize the application: to limit the stock inventory, several applications, for example a low-end and high-end vacuum cleaner can use the same electronics board, with the same mcu, but the mcus have different softwares, or the software is programmed into the st62t65cxx order codes (otp version of st6265c) at the end of the board assembly line. 3. the mcu lets you do things that are not possible otherwise. simple examples are: a) execute pre-programmed sequences of motor speeds, diagnostic faults and alert the user (with temperature sensors, speed sensors, ... or sometimes without them, by deducing motor speed from current, or temperature from cumulated current ...). b) store in non-volatile memory (eeprom) user settings which must be saved when power is turned off.
AN414 application description doc id 1876 rev 2 5/14 3 application description figure 3. permanent magnet dc motor control with st6265c mcu and igbt the power part of the hardware is a bridge rectifier, an input filter capacitor, and the chopper. this converter drives the permanent magnet dc motor. the chopper switch is an igbt. the control part of the hardware is made of the st6265c mcu, the user interface and the power interface. the latter is made of a low-power supply (5 volts for the mcu and 15 volts for the igbt gate), a level shifter to interface mcu and igbt, a peak current detector and a resistor bridge to measure the loop dc voltage, ud . the complete schematic with component values is shown in the permanent magnet motor drive . 3.1 what microcontroller to use? the mcu generates a 5 volts pwm signal which drives the igbt and permits to control the average voltage across the motor, and consequently the motor speed through duty cycle adjustment. on the mcu are also implemented software functions such as a line voltage compensation and a motor power limitation described later. in order to implement these functions, the mcu should include the following special features: pwm timer: it must be autoreload to leave the cpu free for other tasks, and fast to obtain high switching frequencies. analog-to-digital converter, necessary to measure the dc voltage and the motor current. good noise immunity to withstand the chopper and brush sparks proximity. a watchdog for safe operation mcu supply 15 v 5 v buffer user interface ud vdd pwm peak current detectoe vss ic igbt 0 v m ms19690v1
application description AN414 6/14 doc id 1876 rev 2 we used the st6260c / st6265c: it is a low-end 8-bit mcu with 20 pins (or 28 pins respectively), depending upon the i/o request of the user interface, with an internal analog-to-digital converter and a fast pwm generator. figure 4. st6260c / st6265c block diagram 3.2 pwm control the pwm feature is required to control the average voltage on the motor and therefore its speed. the autoreload timer of the st6265c is used to achieve the pwm control (see figure 5: pwm timer operation (operation of the autoreload pwm timer: the cpu controls the period with the reload register, and the duty cycle with the compare register.) ). at each end of count, it reloads itself without cpu operation. the cpu is then available for other tasks after it has programmed the frequency and duty cycle of the pwm signal. the duty cycle can be adjusted by software from 0 to 100%. th e maximum frequency is: 31.25 khz with a resolution of 256 steps (0.4% resolution). for our application, we chose a frequency of 8 khz. rom 4k watchdog spi ram 128 eeprom 128 pwm timer timer a/d converter port a port b port c 8 bit cpu timer 8 bit data bus 20 or 28 pins package ms19692v1
AN414 application description doc id 1876 rev 2 7/14 figure 5. pwm timer operation (operation of the autoreload pwm timer: the cpu controls the period with the reload register, and the duty cycle with the compare register.) 3.3 voltage compensation using such feature on a permanent magnet dc motor, the speed is kept almost constant by keeping the motor voltage constant even if the rectified mains voltage is strongly swinging across the filter capacitor. so a closed loop speed control is not necessary and the speed sensor is saved. a compensation feature is implemented in order to: obtain a motor speed insensitive to mains voltage variations (static performance), reduce acoustic motor noise and dissipation by reducing the motor current ripple (dynamic performance). the average motor voltage vmot must be kept constant. the duty cycle d is modulated as a function of the direct voltage ud around a reference point given by: user request duty cycle ( d0 ), nominal direct voltage ( udnom ). vmot = d x ud vmot = constant = d0 x udnom to achieve this function, ud is measured using the a/d converter of the st6265c and quantized on 32 levels, and d0 is quantized on 16 levels. a duty cycle correction is picked up from a look-up table versus ud and d0 . then the correction is added to d0 and the sum d is loaded in the pwm timer register. the table could also contain values ch osen specifically for the application. in order to reduce motor current ripple, the control loop must be fast, so as to minimize the time between voltage reading and duty cycle updating. timer pwm output 255 compare t register 000 switching period duty cycle ms19693v1
application description AN414 8/14 doc id 1876 rev 2 our compensation algorithm takes 380 s, so in one ud ripple cycle (10 ms for a 50 hz line), the correction is made approximately 26 times. figure 6 shows results obtained for the static performance of the compensation: the motor voltage is measured while the dc input voltage varies from 100 to 400 volts. it is shown that the motor voltage remains within a 5 to 15% range of the voltage demand. this compensation is good enough for most home appliance applications. the motor voltage and therefore, motor speed, remains constant while the dc line voltage ud varies. figure 6. voltage compensation static performances figure 7 shows the dynamic performance of the compensation: the 100 hz ripple in motor current is considerably reduced when using th e compensation (lower trace), compared to the ripple without compensation (upper trace). the top trace shows the motor current without compensation. the measurement is made with a loaded motor: imotor = 2.5 amps (average) / vmotor = 105 volts. the mains voltage is 230 volts. 0 50 100 150 200 250 100 200 300 400 500 v motor (v) ud (v) vmotor < 10% ms19694v
AN414 application description doc id 1876 rev 2 9/14 figure 7. voltage compensation (dynamic performance: motor current ripple reduction (1 a/div, 2 ms/div) 3.4 motor power limitation the purpose of the power limitation is to keep the motor within its safe operating area in case of excessive loading (avoid overheating and hard brush switching). the motor current is evaluated every 3 milliseconds by measur ing the peak chopped current in the igbt emitter. if we call d the duty cycle of the pwm signal, ud the motor dc supply voltage and imot the average current in the motor, the electrical power fed to the motor is: p = vmot x imot = d x ud x imot if we want to limit p to a maximum value pmax (300 w in our example), we must keep the duty cycle below a maximum duty cycle " d_max ": d d_max with d_max = pmax / (ud x imot) the program repetitively measures imot and ud using the a/d converter of the st6265c. then it extracts d_max from a table addressed by ud and imot . it then compares d to d_max and decreases d if it is larger than d_max . the power limitation presents "smooth" transitions between "limited" condition and "non-limited" condition, in orde r to avoid oscillations or jerks. imotor av = 2.5 amps ; vmotor = 105 v uac = 230 v ; c = 100 f 2 ms/dv ; 1 a/dv 0 amps -- 0 amps -- i = 2 amp i = 1 amp ms19695v 1
application description AN414 10/14 doc id 1876 rev 2 figure 8 shows the measured performance of the power limitation. to modify the power limit target, the look-up table can easily be modified. when the motor load changes, the motor current varies. the st6265c mcu measures this current and limits the motor voltage if necessary. figure 8. motor power limitation performance 3.5 program highlights the total program takes 400 bytes of memory space, plus 1024 bytes for the tables. one timer remains free, and 2500 bytes remain available on the st6260c / st6265c for additional software or enlargement of the look-up tables. it is possible, for example, to drive an lcd display by software, to execute pre-programmed sequences of motor speeds, cu rrent limitations, etc. the eepr om also remains available, for example, to store user adjustments which must be saved when the power is off. the line voltage compensation algorithm must be executed at high speed, as already explained, while the power limitation algorithm can be executed less often. therefore, the complete program executes seven line compensations for each power limitation. the line voltage is compensated every 380 micro-seconds while the power is sensed and limited only every 3 milliseconds. 100 200 300 400 500 100 150 200 250 vmotor imotor (a) power 0 50 0 012345 6 vmotor (v) power (w) ms19695v1
AN414 conclusion doc id 1876 rev 2 11/14 4 conclusion microcontrollers are of ten limited to controlling and monito ring the user interfaces. this paper describes a digital solution based on a general purpose mcu with on-chip pwm generator, the st6265c. besides the user interface such as an lcd drive, the mcu controls directly a dc motor with few external components and sophisticated control. a simple instruction set and the use of look-up tables allow for a short time-to-market, while avoiding the investment into an asic circuit. the demonstrated concept is applicable to home appliances (food processor, washing machine, refrigerator, hvac ...) and to industrial applications where high speed accuracy is not required (pumps, fans ...). 5 references [1] - microcontroller and triac on 120/230 v mains a.n 392/a - ph. rabier and l. perie r (sgs-thomson microelectronics) [2] - design with microcontro llers in noisy environment a.n 435 - l. perier (sgs-thomson microelectronics) [3] - versatile and cost-effective induction motor drive with digital three phase generation a.n 424 - b. maurice, jm. bourgeois, b. saby (sgs-thomson microelectronics) [4] - direct software lcd drive with st621x and st626x a.n 594 - t. castagnet, j. nicolai, n. michel (sgs-thomson microelectronics)
permanent magnet motor drive AN414 12/14 doc id 1876 rev 2 appendix a permanent magnet motor drive the permanent magnet motor drive schematic is shown in figure 9 . figure 9. complete schematic of the permanent magnet motor drive d4 5.1v c7 47n c4 200uf vcc 11 vss 12 pb0 1 pb1 2 tst/vpp 3 pb2 4 pb3 5 pb4 6 pb5 7 pb6/tim21 8 pb7/tim20 9 xtal 20 extal 21 nres 22 ckout 23 pc1/tim1 27 pa 0 10 pa 1 13 pa 2 14 pa 3 15 pa 4 16 pa 5 17 pa6 18 pa 7 19 pc4 24 pc3 25 pc2 26 pc0 28 u1 st6265 t4 bc327 r20 2.2k d3 13v p4 p3 p2 d6 4x3a 600v c8 100nf d5 stta806di c1 100u380v r2 270k c3 100uf r19 15k c9 27pf c10 27pf r9 10k x1 8mhz r12 3.9k r13 3.9k d7 led d8 led sw1 sw2 r7 100 r1 6.8k r16 1k d2 1n4148 c6 1nf t1 bc337 t2 2n2222a d1 1n4148 r5 22k r6 47k r4 4.7k r15 8.2k r3 220 c5 100nf t3 stgp10n50 d10 byt11-600 r10 0.47/3w p1 f1 3a r11 0.47/2w r18 12k/2w r17 12k/2w ms19697v1
AN414 revision history doc id 1876 rev 2 13/14 6 revision history table 2. document revision history date revision changes nov-1993 1 initial release. 05-feb-2013 2 modified title and part numbers to include st6265c and st6260c. st62t65 mcu replaced with th e st62t65cxx order codes.
AN414 14/14 doc id 1876 rev 2 please read carefully: information in this document is provided solely in connection with st products. stmicroelectronics nv and its subsidiaries (?st ?) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described he rein at any time, without notice. all st products are sold pursuant to st?s terms and conditions of sale. purchasers are solely responsible for the choice, selection and use of the st products and services described herein, and st as sumes no liability whatsoever relating to the choice, selection or use of the st products and services described herein. no license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. i f any part of this document refers to any third party products or services it shall not be deemed a license grant by st for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoev er of such third party products or services or any intellectual property contained therein. unless otherwise set forth in st?s terms and conditions of sale st disclaims any express or implied warranty with respect to the use and/or sale of st products including without limitation implied warranties of merchantability, fitness for a parti cular purpose (and their equivalents under the laws of any jurisdiction), or infringement of any patent, copyright or other intellectual property right. unless expressly approved in writing by two authorized st representatives, st products are not recommended, authorized or warranted for use in milita ry, air craft, space, life saving, or life sustaining applications, nor in products or systems where failure or malfunction may result in personal injury, death, or severe property or environmental damage. st products which are not specified as "automotive grade" may only be used in automotive applications at user?s own risk. resale of st products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by st for the st product or service described herein and shall not create or extend in any manner whatsoev er, any liability of st. st and the st logo are trademarks or registered trademarks of st in various countries. information in this document supersedes and replaces all information previously supplied. the st logo is a registered trademark of stmicroelectronics. all other names are the property of their respective owners. ? 2013 stmicroelectronics - all rights reserved stmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - philippines - singapore - spain - sweden - switzerland - united kingdom - united states of america www.st.com


▲Up To Search▲   

 
Price & Availability of AN414

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X